package kp.rpc.fault.tolerant.impl;

import kp.rpc.fault.tolerant.TolerantStrategy;
import kp.rpc.model.RpcResponse;

import java.util.Map;

/**
 * @author tzf
 * @description: 快速失败-容错策略
 * @date: 2024/6/7 14:55
 */
public class FailFastTolerantStrategy implements TolerantStrategy {
    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) throws Exception {
        throw new RuntimeException("fail fast", e);
    }
}
